package com.bigpanc.service;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

/**
 * 
 * 
 * Module:
 * 
 * TestServer.java
 * 
 * @author bigPanc
 * @since JDK 1.7
 * @version 1.0
 * @description: server 测试类
 */
public class TestServer {
	public static void main(String[] args) {
		JaxWsProxyFactoryBean factoryBean = new JaxWsProxyFactoryBean();
		factoryBean.setServiceClass(HelloService.class);
		factoryBean.setAddress("http://127.0.0.1:8080/cxf-server/server/hello?wsdl");

		HelloService helloService = (HelloService) factoryBean.create();
		System.out.println("---------client  create server----------");
		String str = helloService.sayHello("testname");
		System.out.println("--------server  visited------------" + str);
	}
}
